package com.exam.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="menu")
public class Menu {
	@Id
	@Column(name="menuId",length=11)
	private int menuId;
	
	@Column(name="title",length=200)
	private String title;
	
	@Column(name="desn",length=250)
	private String desn;
	
	@Column(name="parentId",length=4)
	private int parentId;
	
	@Column(name="url",length=200)
	private String roldUrl;
	public int getMenuId() {
		return menuId;
	}
	public void setMenuId(int menuId) {
		this.menuId = menuId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDesn() {
		return desn;
	}
	public void setDesn(String desn) {
		this.desn = desn;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	
	public String getRoldUrl() {
		return roldUrl;
	}
	public void setRoldUrl(String roldUrl) {
		this.roldUrl = roldUrl;
	}
	public Menu() {
		super();
	}
	public Menu(int menuId, String title, String desn, int parentId, String roldUrl) {
		super();
		this.menuId = menuId;
		this.title = title;
		this.desn = desn;
		this.parentId = parentId;
		this.roldUrl = roldUrl;
	}
	
	
}
